﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200047B RID: 1147
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterSectionCsReq : IMessage<EnterSectionCsReq>, IMessage, IEquatable<EnterSectionCsReq>, IDeepCloneable<EnterSectionCsReq>, IBufferMessage
	{
		// Token: 0x17000EC8 RID: 3784
		// (get) Token: 0x060033A8 RID: 13224 RVA: 0x0008E320 File Offset: 0x0008C520
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterSectionCsReq> Parser
		{
			get
			{
				return EnterSectionCsReq._parser;
			}
		}

		// Token: 0x17000EC9 RID: 3785
		// (get) Token: 0x060033A9 RID: 13225 RVA: 0x0008E327 File Offset: 0x0008C527
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterSectionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000ECA RID: 3786
		// (get) Token: 0x060033AA RID: 13226 RVA: 0x0008E339 File Offset: 0x0008C539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterSectionCsReq.Descriptor;
			}
		}

		// Token: 0x060033AB RID: 13227 RVA: 0x0008E340 File Offset: 0x0008C540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSectionCsReq()
		{
		}

		// Token: 0x060033AC RID: 13228 RVA: 0x0008E348 File Offset: 0x0008C548
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSectionCsReq(EnterSectionCsReq other) : this()
		{
			this.sectionId_ = other.sectionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060033AD RID: 13229 RVA: 0x0008E36D File Offset: 0x0008C56D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSectionCsReq Clone()
		{
			return new EnterSectionCsReq(this);
		}

		// Token: 0x17000ECB RID: 3787
		// (get) Token: 0x060033AE RID: 13230 RVA: 0x0008E375 File Offset: 0x0008C575
		// (set) Token: 0x060033AF RID: 13231 RVA: 0x0008E37D File Offset: 0x0008C57D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SectionId
		{
			get
			{
				return this.sectionId_;
			}
			set
			{
				this.sectionId_ = value;
			}
		}

		// Token: 0x060033B0 RID: 13232 RVA: 0x0008E386 File Offset: 0x0008C586
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterSectionCsReq);
		}

		// Token: 0x060033B1 RID: 13233 RVA: 0x0008E394 File Offset: 0x0008C594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterSectionCsReq other)
		{
			return other != null && (other == this || (this.SectionId == other.SectionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060033B2 RID: 13234 RVA: 0x0008E3C4 File Offset: 0x0008C5C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SectionId != 0U)
			{
				num ^= this.SectionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060033B3 RID: 13235 RVA: 0x0008E403 File Offset: 0x0008C603
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060033B4 RID: 13236 RVA: 0x0008E40B File Offset: 0x0008C60B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060033B5 RID: 13237 RVA: 0x0008E414 File Offset: 0x0008C614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SectionId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.SectionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060033B6 RID: 13238 RVA: 0x0008E448 File Offset: 0x0008C648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SectionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SectionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060033B7 RID: 13239 RVA: 0x0008E486 File Offset: 0x0008C686
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterSectionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SectionId != 0U)
			{
				this.SectionId = other.SectionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060033B8 RID: 13240 RVA: 0x0008E4B7 File Offset: 0x0008C6B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060033B9 RID: 13241 RVA: 0x0008E4C0 File Offset: 0x0008C6C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.SectionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400144F RID: 5199
		private static readonly MessageParser<EnterSectionCsReq> _parser = new MessageParser<EnterSectionCsReq>(() => new EnterSectionCsReq());

		// Token: 0x04001450 RID: 5200
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001451 RID: 5201
		public const int SectionIdFieldNumber = 2;

		// Token: 0x04001452 RID: 5202
		private uint sectionId_;
	}
}
